Thread Module (thread)Block and wait for another task (thread.wait)On this pageBlock and wait for another task (thread.wait) Declaration thread.wait(task_id, timeout_seconds) Parameters task_id Integer. timeout_seconds Number. Timeout in seconds. Returns after timeout. Description Block the current thread and wait for another task to finish. Example See the consolidated examples at the end of this chapter